<template>
    <basic-container class="noScrollBar tabMain-wrap">
        <idea-detail :detailOptions="detailOptions"></idea-detail>
    </basic-container>
</template>

<script>
    import ideaDetail from "./idea/ideaDetail";
    import {getIdeaList, removeIdea} from "@/api/opinion/idea"; //子页面所需接口
    export default {
        data() {
            return {
                detailOptions:{
                    name: "idea",
                    options: {
                        height: 'calc(100vh - 425px)',
                        addBtn:false,
                        menuDelBtn: false,
                        menuUpBtn: true,
                        menuDownBtn: true,
                        dialogDirection:'ltr',
                        dialogType:'drawer',
                        calcHeight: 30,
                        tip: false,
                        searchShow: true,
                        searchMenuSpan: 6,
                        border: true,
                        index: true,
                        indexLabel:'序号',
                        viewBtn: true,
                        editBtn: false,
                        delBtn: true,
                        selection: false,
                        excelBtn: false,
                        dialogClickModal: false,
                        menuOtherBtn: false, //自定义操作按钮，下载上传
                        gistBtn: false,
                        align:'center',
                        menuAlign:'center',
                        column: [
                            {
                                label: "意见类型",
                                prop: "type",
                                search: true,
                                viewDisplay: true,
                                type: "select",
                                dicUrl: "/api/dis-sys/dict/dictionary?code=message_category",
                                props: {
                                    label: "dictValue",
                                    value: "dictKey"
                                },
                            },
                            {
                                label: "手机",
                                prop: "phone",
                                search: true,
                                viewDisplay: true
                            },
                            {
                                label: "意见内容",
                                prop: "content",
                                editDisplay: true,
                                viewDisplay: true,
                                overHidden:true
                            },
                            {
                                label: "邮箱地址",
                                prop: "email",
                                viewDisplay: true
                            },
                        ]
                    },
                    url: {
                        getList: getIdeaList,
                        remove: removeIdea,
                    }
                }
            };
        },
        components: {
            ideaDetail
        },
        computed: {

        },
        created () {

        },
        methods: {

        }
    };
</script>

<style lang='scss'>
.tabMain-wrap {
    // height: calc(100vh - 400px);
    overflow: hidden auto;
}
</style>
